package com.hnkywl.sts.action.report;

import com.hnkywl.sts.service.organ.GsjgService;
import com.hnkywl.sts.service.report.WlycwkcService;
import com.hnkywl.sts.service.report.WlycwsfcService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-6-14
 * Time: 下午4:48
 * To change this template use File | Settings | File Templates.
 */
@Namespace("/report/wlycwkc")
public class WlycwkcAction extends SimpleActionSupport {
    private Long gsId;
    private Date date;
    private int page;
    private int rows;

    private WlycwkcService wlycwkcService;
    private String khMc;
    private String wzbm;
    private String pm;
    private String cz;
    private String ggxh;
    private Integer year;
    private Integer month;
    private Date cwkcRq;

    @Action("wlycwkc")
    public String cwsfc() {
        cwkcRq = new Date();
        return SUCCESS;
    }

    @Action("wlycwkcList")
    public void cwsfcList() {
        String json = wlycwkcService.wlyCwkcList(gsId, khMc,cwkcRq, wzbm, pm, cz, ggxh,page,rows);
        renderJson(json);
    }


    public Long getGsId() {
        return gsId;
    }

    public void setGsId(Long gsId) {
        this.gsId = gsId;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public String getKhMc() {
        return khMc;
    }

    public void setKhMc(String khMc) {
        this.khMc = khMc;
    }

    public String getWzbm() {
        return wzbm;
    }

    public void setWzbm(String wzbm) {
        this.wzbm = wzbm;
    }

    public String getPm() {
        return pm;
    }

    public void setPm(String pm) {
        this.pm = pm;
    }

    public String getCz() {
        return cz;
    }

    public void setCz(String cz) {
        this.cz = cz;
    }

    public String getGgxh() {
        return ggxh;
    }

    public void setGgxh(String ggxh) {
        this.ggxh = ggxh;
    }

    public Date getCwkcRq() {
        return cwkcRq;
    }

    public void setCwkcRq(Date cwkcRq) {
        this.cwkcRq = cwkcRq;
    }

    @Autowired
    public void setWlycwkcService(WlycwkcService wlycwkcService) {
        this.wlycwkcService = wlycwkcService;
    }
}
